package org.jeecg.modules.hotel.history.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.hotel.check.entity.Repeat;
import org.jeecg.modules.hotel.history.entity.LwgyHotelHistory;
import org.jeecg.modules.hotel.history.mapper.LwgyHotelHistoryMapper;
import org.jeecg.modules.hotel.history.service.ILwgyHotelHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 住宿历史记录
 * @Author: jeecg-boot
 * @Date:   2021-02-24
 * @Version: V1.0
 */
@Service
public class LwgyHotelHistoryServiceImpl extends ServiceImpl<LwgyHotelHistoryMapper, LwgyHotelHistory> implements ILwgyHotelHistoryService {
    @Autowired
    public LwgyHotelHistoryMapper lwgyHotelHistoryMapper;

    public IPage<LwgyHotelHistory> page(Page<LwgyHotelHistory> page, QueryWrapper<LwgyHotelHistory> queryWrapper){
      return lwgyHotelHistoryMapper.queryList(page,queryWrapper);
    }

    public List<LwgyHotelHistory> list(QueryWrapper<LwgyHotelHistory> queryWrapper){
        return lwgyHotelHistoryMapper.list(queryWrapper);
    }
}
